Skip to content

fix: handle retrying and non-200 status codes when downloading advisories#124

Merged
G-Rath merged 2 commits into
mainfrom
download/error-properly
Aug 18, 2025
Merged

fix: handle retrying and non-200 status codes when downloading advisories#124
G-Rath merged 2 commits into
mainfrom
download/error-properly

Conversation

@G-Rath

@G-Rath G-Rath commented Aug 13, 2025

Copy link
Copy Markdown
Collaborator

Turns out we don't actually raise an error if we get a non-200 status code in this script, so if that happens we can end up generating advisories with incomplete data.

In addition to having a non-200 raise an error I've also included logic for retrying once since a 429 was what originally led to me discovering this

@jonholdsworth jonholdsworth left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, logic seems right.

@G-Rath G-Rath merged commit b48dca6 into main Aug 18, 2025
9 checks passed
@G-Rath G-Rath deleted the download/error-properly branch August 18, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants